package com.pajk.user.exception;

public class CreditServiceException extends RuntimeException {
    public static final String OVER_TIMES       = "OVER_TIMES";
    /**
     * 
     */
    private static final long  serialVersionUID = 1516140455505639774L;

    protected String           exceptionCode    = "E0000";

    public String getExceptionCode() {
        return exceptionCode;
    }

    public CreditServiceException() {
        super();
    }

    public CreditServiceException(String s) {
        super(s);
    }

    public CreditServiceException(CreditErrorEnum creditErrorEnum) {
        super(creditErrorEnum.getErrorMessage());
        this.exceptionCode = creditErrorEnum.getErrorCode();
    }

    public CreditServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public CreditServiceException(Throwable cause) {
        super(cause);
    }

    public CreditServiceException(Throwable cause, String exceptionCode) {
        super(cause);
        this.exceptionCode = exceptionCode;
    }
}
